#include "paydialog.h"
#include "ui_paydialog.h"

PayDialog::PayDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::PayDialog)
{
    ui->setupUi(this);
    setLayout(ui->verticalLayout);
    connect(ui->btnOK, SIGNAL(clicked()), this, SLOT(slotBtn()));
    connect(ui->btnCancel, SIGNAL(clicked()), this, SLOT(slotBtn()));
}

void PayDialog::slotBtn()
{
    if(sender() == ui->btnOK)
        emit signalBtn(1);
    else if(sender() == ui->btnCancel)
        emit signalBtn(2);
}

PayDialog::~PayDialog()
{
    delete ui;
}
